import request from '@/utils/request'

// 查询运费列表
export function listTransPay(query) {
  return request({
    url: '/basic/transPay/list',
    method: 'get',
    params: query
  })
}

// 查询运费详细
export function getTransPay(id) {
  return request({
    url: '/basic/transPay/' + id,
    method: 'get'
  })
}

// 新增运费
export function addTransPay(data) {
  return request({
    url: '/basic/transPay',
    method: 'post',
    data: data
  })
}

// 修改运费
export function updateTransPay(data) {
  return request({
    url: '/basic/transPay',
    method: 'put',
    data: data
  })
}

// 删除运费
export function delTransPay(id) {
  return request({
    url: '/basic/transPay/' + id,
    method: 'delete'
  })
}
